package com.ego.client;

import com.ego.pojo.bo.SpuBo;
import com.ego.pojo.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author Ares
 * @date 2020-11-28
 */
@FeignClient("ItemService")
@RequestMapping("/goods")
public interface GoodsFeignClient {
    /**
     * 根据id查询商品
     * @param id
     * @return
     */
    @GetMapping("/spubo/{id}")
    SpuBo queryGoodsById(@PathVariable("id") Long id);
}
